
<%@ page import="com.macrosolution.exdebito.FileDocument" %>
<!DOCTYPE html>
<html>

<head>
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'fileDocument.label', default: 'FileDocument')}" />
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>

<body>
<!-- RIBBON -->
			<div id="ribbon">

				<span class="ribbon-button-alignment"> 
					
				</span>

				<!-- breadcrumb -->
				<ol class="breadcrumb">
					<li>Home</li><li>Gestione File</li>
				</ol>
				<!-- end breadcrumb -->

				

			</div>
			<!-- END RIBBON -->
<div id="content">

		<div class="row">
			<div class="col-xs-12 col-sm-7 col-md-7 col-lg-8">
				<h1 class="page-title txt-color-blueDark">
					<i class="fa fa-cloud fa-fw "></i> Gestione File <span>>
					<i class="fa fa-file fa-fw "></i>Riepilogo Informazioni per:   </span><span class="txt-color-blue">&nbsp&nbsp${fileDocumentInstance.fileName}</span>
				</h1>
			</div>
		</div>



<div class="col col-md-6 col-md-offset-1">
		
		
	<table class="table table-bordered">
		<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.fileName.label" default="Nome File" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: fileDocumentInstance, field: "fileName")}</td>
				
			</tr>
			
			
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.user.label" default="Caricato da" /></td>
				
				<td valign="top" class="value"><g:link controller="user" action="show" id="${fileDocumentInstance?.user?.id}">${fileDocumentInstance?.user?.encodeAsHTML()}</g:link></td>
				
			</tr>
			
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.comments.label" default="Commenti" /></td>
				<g:if test="${fileDocumentInstance.comments}">
					<td valign="top" class="value">${fieldValue(bean: fileDocumentInstance, field: "comments")}</td>
				</g:if>
				<g:else>
					<td valign="top" class="value"><span class="text-muted">Nessun Commento per questo file</span></td>
				</g:else>
				
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.dateCreated.label" default="Data Creazione" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${fileDocumentInstance?.dateCreated}" type="datetime" style="LONG" timeStyle="SHORT"/></td>
				
			</tr>
			
			
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.documentType.label" default="Tipo documento" /></td>
				
				<td valign="top" class="value">
					
						${fileDocumentInstance?.documentType?.documentType}
				
				</td>
				
			</tr>
		
			
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.filePath.label" default="Percorso File" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: fileDocumentInstance, field: "filePath")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.fileSize.label" default="Dimensione File" /></td>
				<td valign="top" class="value">${fileDocumentInstance?.byteFormat()}</td>
<%--				<td valign="top" class="value">${fieldValue(bean: fileDocumentInstance, field: "fileSize")}&nbsp </td>--%>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.file_estension.label" default="Tipo File" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: fileDocumentInstance, field: "file_estension")}</td>
				
			</tr>
		
<%--			<tr class="prop">--%>
<%--				<td valign="top" class="name"><g:message code="fileDocument.lastUpdated.label" default="Last Updated" /></td>--%>
<%--				--%>
<%--				<td valign="top" class="value"><g:formatDate date="${fileDocumentInstance?.lastUpdated}" /></td>--%>
<%--				--%>
<%--			</tr>--%>
		
			
		
		</tbody>
	</table>
</div>
	<div class="row">
		<div class="col col-md-7 ">
		
			<button type="button" class="btn btn-warning pull-right" onclick="window.history.back();">
				Indietro
			</button>
		
	
		</div>
	
	</div>
	
	
	
	
	
	




</div>


</body>

</html>
